package com.yykj.drup.server.form;

import com.yykj.drup.server.dto.PrescriptionStoreProductDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @Author zeng
 * @Date 2022/3/22
 */
@Data
@ApiModel("自定义订单提交实体类")
public class OrderForm {

/*    @ApiModelProperty("地址标识ID")
    private String deliveryAddressId;*/

    @ApiModelProperty("配送类型 ")
    private Integer freightType;

    @ApiModelProperty("value = 订单选择支付方式(微信),example = 微信")
    private String payType;

    /*@ApiModelProperty("订单商品总金额")
    private BigDecimal totalPrice;*/

    @ApiModelProperty("运费金额")
    private BigDecimal freightPrice;

    @ApiModelProperty("处方医生名称")
    private String prescriptionDoctor;

    @ApiModelProperty(value = "就诊人标识ID",required = true)
    @NotEmpty(message = "就诊人标识ID: consultUserId")
    private String consultUserId;

    @ApiModelProperty("就诊人地址")
    private String consultUserAddress;

    @ApiModelProperty("就诊人姓名")
    private String consultUserName;

    @ApiModelProperty("就诊人电话")
    private String consultUserPhone;

    @ApiModelProperty(value = "收货人姓名",required = true)
    @NotEmpty(message = "name")
    private String name;

    @ApiModelProperty(value = "收货人手机号",required = true)
    @NotEmpty(message = "mobile")
    private String mobile;

    @ApiModelProperty(value = "收货人省",required = true)
    @NotEmpty(message = "province")
    private String province;

    @ApiModelProperty(value = "收货人市",required = true)
    @NotEmpty(message = "city")
    private String city;

    @ApiModelProperty(value = "收货人区",required = true)
    @NotEmpty(message = "area")
    private String area;

    @ApiModelProperty(value = "收货详细地址",required = true)
    @NotEmpty(message = "addressDetail")
    private String addressDetail;

    @NotNull(message = "hospitalId")
    @ApiModelProperty(value = "医院ID",required = true)
    private Integer hospitalId;

    @NotEmpty(message = "prescriptionId")
    @ApiModelProperty(value = "处方ID",required = true)
    private String prescriptionId;

    @ApiModelProperty("订单药店药品详情信息")
    private List<PrescriptionStoreProductDto> storeProductDtos;

}
